package com.example.demo;

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.stage.Stage;

public class PkApp extends Application {

    @Override
    public void start(Stage stage) throws Exception {
        //用fxml加载器，加载了外观文件
        FXMLLoader fxmlLoader = new FXMLLoader(HelloApplication.class.getResource("Pk-view.fxml"));
        //通过加载器，创建场景
        Scene scene = new Scene(fxmlLoader.load(), 600, 600);
        //设置标题
        stage.setTitle("仙剑奇侠传");
        //场景载入舞台
        stage.setScene(scene);
        //显示舞台
        stage.show();
    }

    public static void main(String[] args) {
        launch();
    }
}
